<template>
  <div class="layout">
    <el-container>
      <!-- 侧边栏 -->
      <el-aside width="200px">
        <v-side></v-side>
      </el-aside>
      <!-- 右侧内容 -->
      <el-container>
        <!-- 顶部 -->
        <el-header>
          <v-header></v-header>
        </el-header>
        <!-- 会切换的内容 -->
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import vSide from './vSide.vue'
import vHeader from './vHeader.vue'
export default {
  components: {
    vSide,
    vHeader,
  }
};
</script>

<style>
.el-header {
  background-color: #fff;
  /* color: #333; */
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
}

.el-container {
  height: 100vh;
}
</style>